import { IPublicModelPluginContext } from '@alilc/lowcode-types';
import CodeDiff from './code-diff';

// 保存功能示例
const GenerateCodePlugin = (ctx: IPublicModelPluginContext) => {
  return {
    async init() {
        const { skeleton, config } = ctx;
        skeleton.add({
            name: 'genJSX',
            area: 'topArea',
            type: 'Widget',
            props: {
              align: 'right',
            },
            content: CodeDiff,
            contentProps: { ctx }
        });
    },
  };
}
GenerateCodePlugin.pluginName = 'GenerateCodePlugin';
export default GenerateCodePlugin;

